#!/bin/sh
##########################################################################
# This file is part of Hawkengine.
#
# Hawkengine is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Hawkengine is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Hawkengine.  If not, see <http://www.gnu.org/licenses/>.
##########################################################################

export GENERATED_FILE="// Auto-Generated -- DO NOT EDIT"

echo "$GENERATED_FILE" > $HOST_FILE
echo "#ifndef $HOST_FILE_MACRO" >> $HOST_FILE
echo "#define $HOST_FILE_MACRO" >> $HOST_FILE
echo "" >> $HOST_FILE
echo "#ifdef MOBILE" >> $HOST_FILE
echo "#include <GLES/gl.h>" >> $HOST_FILE
echo "#else" >> $HOST_FILE
for HOST_DEPEND in $HOST_DEPENDS; do
    echo "#include $HOST_DEPEND" >> $HOST_FILE
done
echo "#endif" >> $HOST_FILE
echo "" >> $HOST_FILE
echo "#endif" >> $HOST_FILE
echo "" >> $HOST_FILE
